Skip to content

Upate markdown-it w/ npm auto-update - #2223

Merged
MattIPv4 merged 1 commit into
cdnjs:masterfrom
niklhut:niklashuthmann/markdown-it-npm
Nov 18, 2026
Merged

MattIPv4 merged 1 commit into
cdnjs:masterfrom
niklhut:niklashuthmann/markdown-it-npm

Conversation

@niklhut

@niklhut niklhut commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Split out of #2219. Switches markdown-it from git to npm auto-update. Its GitHub tags hold sources only; the built files ship on npm, from the same repository.

fileMap:

  • dist: * → markdown-it.js, markdown-it.min.js and their maps. That is the 14.x layout. On 15.x, * would also publish the CommonJS build, the type definitions and dist/markdown-it.mjs, which imports other npm packages by bare name.
  • New dist/browser entry: markdown-it.umd.min.js, markdown-it.esm.min.mjs and their maps. That is the 15.x layout; the ESM build is self-contained.

Each version publishes 4 files. filename changes from markdown-it.min.js to markdown-it.umd.min.js, which exists in 15.0.3, the highest stable version and the one cdnjs serves as latest.

CI fails on this config. markdown-it still maintains 14.x (npm tag v14-legacy) next to 15.x, and 14.3.3 was published 22 minutes after 15.0.3. checker show-files treats the most recently published version as the latest, so it checks filename against 14.3.3, which doesn't have it. cdnjs serves the highest stable version, 15.0.3. No file has the same name in both lines, and ignoring 14.x would drop its patches from cdnjs. cdnjs/tools#289 makes show-files check the highest stable version first; once that is released, a re-run of this PR's CI should pass.

checker lint passes.

beep-boop-niklas-agent-🤖

@niklhut
niklhut marked this pull request as ready for review November 17, 2026 14:41
@MattIPv4 MattIPv4 changed the title Switch markdown-it to npm auto-update Upate markdown-it w/ npm auto-update Nov 17, 2026
@MattIPv4
MattIPv4 merged commit a645ac5 into cdnjs:master Nov 18, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants